.weather-layout {
  display: flex;
  flex-direction: column;
  .title {
    // background-image: linear-gradient(to top, #176be6, #26a4f6 50%, #2fc9ff);
    // background-color: #3478f5;
    // background-blend-mode: normal;
    background: #eee;
    height: 35px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    h3 {
      font-weight: normal;
    }
    .closer {
      margin-left: 100px;
      color: #000;
      &::after {
        content: '✖';
        position: absolute;
        right: 3px;
        top: 3px;
      }
    }
  }
}

.weather {
  .ant-menu-item-selected {
    color: inherit;
  }
  height: 749px;
  .ant-layout-sider-children {
    background-color: #f4f6f9;
  }
  ul.ant-menu-sub {
    border-bottom: 1px solid #e3e3e3;
  }
  .ant-menu {
    border-right: none;
    border-left: none; // background-color: #f4f6f9;
    .ant-menu-submenu-title {
      border-bottom: 1px solid #e3e3e3;
      margin: 0;
      background-color: #f4f6f9;
      padding-left: 1em !important;
    }
    .ant-menu-item {
      background-color: #fff;
      margin: 0; // color: #f3927f;
      display: flex;
      align-items: center;
      width: 100%;
      padding-left: 1em !important;
      position: relative;
      span {
        margin-left: -.5em;
        padding-left: 1em;
        &::before {
          content: '';
        }
      }
      .action {
        position: absolute;
        right: 10px; // z-index: 1;
        margin: 0;
      }
      &:hover {
        span {
          display: flex;
          align-items: center;
          width: 167px;
          height: 20px;
          border-radius: 10px;
          position: relative;
          color: #fff;
          background-color: #f3927f;
        }
      }
      &::after {
        border: none;
      }
    }
  }
  .ant-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    >section {
      background-color: #fff;
      width: calc(100% - 30px);
    }
    .trigger {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 15px;
      height: 100%;
      background-color: #ddd;
      .trigger-content {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #bbb;
        width: 15px;
        height: 70px;
        cursor: pointer;
      }
    }
  }
  .right {
    .ant-collapse {
      border: none;
      .ant-collapse-header {
        font-size: 1.17rem;
        padding-left: 20px;
        background-color: #f4f6f9;
        .arrow {
          right: 16px;
          left: unset;
        }
      }
      .ant-collapse-content {
        background-color: #fff;
        color: #000;
      }
    }
  }
  .seven-days {
    display: flex; // align-items: stretch;
    justify-content: flex-start;
    height: 50px;
    margin-bottom: 1em;
    .someday {
      margin: 0 .4em;
      display: flex;
      width: 104px;
      height: 50px;
      padding: .4em 0;
      &:first-child {
        margin-left: .8em;
      }
      .week {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-family: Arial;
        color: #999;
        font-size: 1.2rem;
        font-weight: bold;
        flex-basis: 45%;
        border-right: 1px solid#e0e0e0;
        .icon-weather {
          height: 32px;
          img {
            height: 100%;
          }
        }
      }
    }
    .day {
      flex-basis: 55%;
      display: flex; // background-color: #dcf1ff;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      margin-top: -.5em;
      >img {
        width: 34px;
        height: 34px;
      }
      .water {
        .rainfall {
          margin-left: .6em;
        }
      }
      .temp {
        display: flex;
        justify-content: center;
        color: #999;
        align-items: flex-end;
        .high,
        .separate,
        .low {
          font-weight: bold;
        }
        .high {
          font-size: 1.8rem;
        }
        .separate {
          font-size: 1.6rem;
        }
        .low {
          font-size: 1.2rem;
          margin-bottom: .1em;
        }
        .unit {
          font-size: 0.8rem; // align-self: flex-start;
          margin-bottom: .6em;
        }
      }
    }
  }
}

.layout-content {
  flex-grow: 1;
  background-color: #fff;
  padding: 1em 0;
  .temperature,
  .gdu,
  .pcpn,
  .echart {
    width: 100%;
    height: 210px; // width: 800px;
    // padding: 10px 0;
  }
  .echart {
    margin-bottom: .8em;
  }
  .datepicker {
    background-color: #fff;
    padding: 0 1em;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1em;
    .ant-calendar-picker {
      margin-right: .5em;
      width: 120px;
      .ant-input {
        padding: 0;
        height: 22px;
      }
    }
  }
  .farmland-weather {
    position: relative;
    .ant-btn {
      position: absolute;
      right: 3em;
      top: 0;
      z-index: 1;
    }
  }
  >div:last-child {
    margin-bottom: 10px;
  }
}

.modals {
  .ant-modal-header {
    background-image: linear-gradient(to top, #176be6, #26a4f6 50%, #2fc9ff);
    background-color: #3478f5;
    background-blend-mode: normal;
    height: 35px;
    padding: 5px;
    >.ant-modal-title {
      color: #feffff;
      font-size: 1.17rem;
    }
  }
  .ant-modal-close {
    .ant-modal-close-x {
      display: none;
    }
    right: 10px;
    top: 10px;
    color: #ffffff;
    font-size: 1rem;
    &::after {
      content: "✖";
    }
  }
  .ant-modal-body {
    padding: 1em;
    .filter {
      margin-bottom: 1em;
      display: flex;
      justify-content: space-between;
      .drop-down {
        width: 150px;
        height: 30px;
      }
      .datapicker {
        .ant-calendar-picker {
          margin-right: 1em;
          .ant-calendar-picker-input {
            height: 22px;
            width: 120px;
          }
        }
      }
    }
    .content {
      position: relative;
      height: 340px;
      .icon-loading {
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba($color: #dedede, $alpha: 0.5);
        z-index: 1;
      }
      .table {
        width: 100%;
        height: 100%;
        .ant-table-wrapper {
          margin: 1em 0;
          th,
          td {
            width: 90px;
            max-width: 90px;
            padding: 0;
            .ant-input-number {
              border: none;
              input {
                border: none;
                font-size: 1rem;
                &.input-error {
                  border: 1px solid #e49999;
                }
              }
            }
            &:first-child {
              width: 48px;
              max-width: 48px;
              text-align: center;
            }
          }
          th {
            padding: 0.8em;
            text-align: center;
          }
        }
      }
    }
  }
  .ant-modal-footer {
    >div {
      >.ant-btn:first-child {
        display: none;
      }
    }
  }
}

.hoc {
  position: relative;
  .echart-error {
    position: absolute;
    display: flex;
    z-index: 1;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba($color: #eef0f4, $alpha: 0.5);
    cursor: pointer;
    .reload {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 0;
      >div {
        margin-top: 5px;
        margin-bottom: 0;
      }
    }
  }
}

.ant-collapse-content-box {
  padding: .8em !important;
  .weatherInfo {
    .datepicker {
      >div {
        display: flex;
      }
      .ant-calendar-picker {
        margin-right: 0.5em;
        width: 110px;
        .ant-input {
          padding: 0;
          height: 22px;
        }
      }
      margin-bottom: .8em;
    }
    .infomation-table {
      position: relative;
      .loading {
        position: absolute;
        width: 100%;
        height: 125px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba($color: #dedede, $alpha: 0.5);
        z-index: 1;
      }
      .reload {
        cursor: pointer;
        position: absolute;
        z-index: 1;
        display: flex;
        width: 100%;
        height: 125px;
        justify-content: center;
        flex-direction: column;
        background-color: rgba($color: #dedede, $alpha: 0.5);
        align-items: center;
        margin-bottom: 0;
        >div {
          margin-top: 5px;
          margin-bottom: 0;
        }
      }
      table {
        border: 1px solid #e8e8e8;
        border-right: none;
        border-bottom: none;
        width: 100%;
        td {
          padding: 0.5em;
          text-align: left;
          border-right: 1px solid #e8e8e8;
          border-bottom: 1px solid #e8e8e8;
        }
        tr:nth-child(2n-1) {
          background-color: #f4f6f9;
        }
      }
    }
  }
}

.insights {
  height: 588px;
  .insights-header {
    display: flex;
    justify-content: space-between;
    .date {
      .anticon-calendar {
        display: block;
      }
      display: flex;
      .all {
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #428bca;
        color: #fff;
        font-size: 1rem;
        cursor: pointer;
      }
      .filterDate {
        position: relative;
        .icon-date {
          cursor: pointer;
          width: 25px;
          height: 25px;
          display: flex;
          align-items: center;
          background-color: #428bca;
          justify-content: center;
          margin-left: .8em;
        }
        .ant-calendar-picker {
          position: absolute;
          right: 0;
          top: 0;
          >div {
            width: 1px;
            height: 1px;
            overflow: hidden;
            .anticon {
              display: none;
            }
          }
        }
      }
    }
    .add {
      padding: 0 .3em;
      display: flex;
      border: 1px solid #bebebe;
      align-items: center;
      background-color: #fff;
      color: #585858;
      cursor: pointer;
      span {
        margin-left: 0.3em;
      }
    }
  }
  .item {
    margin: .8em 0;
    border: 1px solid #ccc;
    .item-title {
      padding: 0 .2em;
      background-color: #8f9aad;
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 24px;
      .date-user {
        display: flex;
        align-items: center;
        .date {
          color: #fff;
          margin-right: .4em;
          .ant-input {
            font-size: 1rem;
            width: 80px;
            padding-left: 0;
            padding-right: 0;
            height: 20px;
          }
        }
        .usr {
          position: relative;
          color: #99ff89;
          right: 0;
          bottom: 0;
        }
      }
      .action {
        display: flex;
        .edited,
        .delete,
        .cancel,
        .save {
          cursor: pointer;
          span {
            font-size: 1rem;
            color: #fff;
          }
          .anticon {
            margin: 0 .2em;
          }
        }
      }
    }
    .item-content {
      height: 80px;
      textarea {
        font-size: 1rem;
      }
      .contents {
        padding: 0.2em;
      }
    }
  }
}

.ant-collapse {
  font-size: 1rem;
}

.xishu {
  padding: 0.2em;
  width: 100%;
  td {
    width: 80px;
    text-align: left;
    padding: 0 !important;
    .ant-input-number {
      border: none;
      width: auto;
      font-size: 1rem;
      .ant-input-number-handler-wrap {
        display: none;
      }
    }
  }
  .ant-table-row {
    td:nth-child(2n) {
      width: 40%;
    }
  }
  .xishu-form-button {
    // float: right;
    margin-top: 0.5em;
    display: flex;
    justify-content: flex-end;
  }
}